package com.example.demo.YmlController;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "student")//注意对象名称
@Data
@Component
public class Student {
    public int id;
    public String name;
    public int age;
}
